package com.zhongan;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.security.authentication.AuthenticationManager;
import org.springframework.security.authentication.AuthenticationProvider;
import org.springframework.security.authentication.ProviderManager;
import org.springframework.security.oauth2.config.annotation.web.configuration.EnableAuthorizationServer;

import java.util.Arrays;

/**
 * 用户中心服务启动类
 */
@EnableAuthorizationServer
@EnableFeignClients
@EnableDiscoveryClient
@SpringBootApplication
public class CloudUserCenterApplication {

	public static void main(String[] args) {
		new SpringApplicationBuilder(CloudUserCenterApplication.class).web(true).run(args);
	}
}
